|
|
 |
|
|
|
|
Dim i As Integer
For i = 1 To NumPoints
T.Transform Points(i).coord(1), _
Points(i).coord(2), Points(i).coord(3)
Next i
End Sub |
|
|
|
|
|
|
|
|
You can see the complete source code for the Polyline3d class in Pline3d.cls. |
|
|
|
|
|
|
|
|
Example program Distort uses the Polyline3d class to demonstrate several shape-distorting transformations. When you run the program, it creates grids on the top and two sides of a cube, as shown in the upper left in Figure 13.36. Click on the option buttons to make the program apply one of the transformations shown in Figure 13.36. |
|
|
|
|
|
|
|
|
Example program Shapes uses the Polyline3d class to display several three-dimensional scenes. Use the option buttons to select the scene you want to see. |
|
|
|
|
|
|
|
|
Figure 13.36
Shape-distorting transformations. |
|
|
|
|
|